shortcut: Change the API for creating shortcuts
authorBenjamin Otte <otte@redhat.com>
Sat, 18 Aug 2018 18:01:43 +0000 (20:01 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 19 Mar 2020 03:00:51 +0000 (23:00 -0400)
commit4a4bfa076608b63a1c7b2e4fed41edf609e8ec94
tree8c2e5014909c5ea7c16b150519465009b171a46d
parente6d0560a8239112882dacbc9611b39e1d801493c
shortcut: Change the API for creating shortcuts

When creating shortcuts, there almost always are a trigger and an action
available for use. So make gtk_shortcut_new() take those as arguments.

Also add gtk_shortcut_new_with_arguments() so people can easily pass
those in, too.
demos/gtk-demo/shortcut_triggers.c
docs/reference/gtk/gtk4-sections.txt
gtk/gtklabel.c
gtk/gtkshortcut.c
gtk/gtkshortcut.h
gtk/gtkwidget.c
gtk/gtkwindow.c